$(function() {
   	   var $stime = $('#stime');
   	   var $etime = $('#etime');
   	   $stime.datepicker();
   	   $etime.datepicker();
   	   
   	   $("#type").change(function(){
   		   $("#queryForm").submit();
   	   });
   	   
   	   $("#state").change(function(){
		   $("#queryForm").submit();
	   });
   	   
   	   var $dayTime = $('#dayTime');
	   
	   $dayTime.datepicker().
	    on('changeDate.datepicker.amui', function(event) {
	    	$("#queryForm").submit();
	    });
});

var userId = $("#uid").val();
var sessionId = $("#siixId").val();

function updatePwd(){
   parent.dialog('修改登陆密码','pa/toUpdatePwd?userId='+userId,'350px','300px');
}
function updateBankPwd(){
   parent.dialog('修改银行密码','pa/toUpdateBankPwd?userId='+userId,'350px','300px');
}
 
function updateShowId(){
   parent.dialog('修改游戏ID','pa/toUpdateShowId?userId='+userId,'400px','500px');
}

function updateNickname(){
   parent.dialog('修改昵称','pa/toUpdateNickname?userId='+userId,'400px','500px');
}
function control(){
	parent.dialog('调整','control/config/getAll?userId='+userId,'90%','90%');
}
